package com.cmic.sso.activity;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.cmic.sso.BuildConfig;
import com.cmic.sso.R;
import com.diting.library.cmcc.activity.SimpleActivity;
import com.diting.library.cmcc.util.Constant;

public class DemoActivity extends Activity {
    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo);
        Constant.HTTP_VALIDATE_TOKEN_URL = BuildConfig.HTTP_VALIDATE_TOKEN_URL;
        Constant.APP_ID = BuildConfig.APP_ID;
        Constant.APP_KEY = BuildConfig.APP_KEY;
        Constant.APP_SECRET = BuildConfig.APP_SECRET;
        findViewById(R.id.btn_demo).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(DemoActivity.this, SimpleActivity.class));
            }
        });
    }
}
